package com.zbkj.crmeb.store.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 价格尾号设置request
 *
 * @author lvmd
 * @date 2022-02-08
 */
@Data
@Accessors(chain = true)
public class BatchPriceTailRequest implements Serializable {

    @ApiModelProperty(value = "类型：0：选中商品，1：全部商品", allowableValues = "range[0,1]")
    @NotNull(message = "类型不能为空")
    @Min(value = 0)
    @Max(value = 1)
    private Integer type;

    @ApiModelProperty(value = "价格尾号")
    @Range(min = 0, max = 9, message = "价格尾号0-9")
    private Integer priceTailNumber;

    @ApiModelProperty(value = "商品id集合")
    private List<Integer> productIdList;

}